package com.kandinfo.base.security.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.kandinfo.base.admin.domain.BaseDomain;

@Entity
@Table(name = "user")
public class User extends BaseDomain implements Serializable {

    private static final long serialVersionUID = 8087744736335387774L;

    @Column(name = "username")
    private String username;// 登陆账户

    @Column(name = "password")
    private String password;// 密码

    @Column(name = "name")
    private String name;// 姓名

    @Column(name = "mobile")
    private String mobile;

    @Column(name = "email")
    private String email;

    @Column(name = "status")
    private String status; // 用户状态

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "last_login_failure_ts")
    private Date lastLoginFailureTs;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "last_login_ts")
    private Date lastLoginTs;

    @Column(name = "wx_open_id")
    private String wxOpenId; /* 微信openId */

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getLastLoginFailureTs() {
        return lastLoginFailureTs;
    }

    public void setLastLoginFailureTs(Date lastLoginFailureTs) {
        this.lastLoginFailureTs = lastLoginFailureTs;
    }

    public Date getLastLoginTs() {
        return lastLoginTs;
    }

    public void setLastLoginTs(Date lastLoginTs) {
        this.lastLoginTs = lastLoginTs;
    }

    public String getWxOpenId() {
        return wxOpenId;
    }

    public void setWxOpenId(String wxOpenId) {
        this.wxOpenId = wxOpenId;
    }

}
